package com.shopping.service;

import java.util.List;

import com.shopping.commons.response.DataGradResp;
import com.shopping.commons.response.MessageResp;
import com.shopping.commons.service.CommonsService;
import com.shopping.model.Order;
import com.shopping.param.OrderParam;
import com.shopping.response.OrderResp;

public interface IOrderService extends CommonsService<Order>{

	public DataGradResp<Order> select(OrderParam param);
	
	public MessageResp addOrderAndDetails (OrderParam param);

	/**
	 * 根据用户，查询用户的订单（包括订单详情和商品详情）
	 * @param userid
	 * @return
	 */
	public List<OrderResp> findOrderAndDetails(Integer userid);
}
